package com.farm.farm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.farm.common.entity.NumericalEntity;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "lease_field")
@TableName(value = "lease_field", keepGlobalPrefix = true)
public class LeaseField extends NumericalEntity {

    private Long fieldId;

    private Byte type = 0;

    private LocalDateTime duration = LocalDateTime.of(1900, 1, 1, 0, 0);

    private Byte status = 1;

}
